module.exports = {
    publicPath: './',
    devServer: {
        proxy: {
            '/api': {
                target: 'http://localhost:8888', // 后端地址
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '' // 将 /api 替换为空，即请求会发到 http://localhost:8888/user/add
                }
            }
        }
      },
}
